import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";

type homeResult = {
  page: any;
  result: any
};

/** 分页查询分页查询企业 */
export const getselsaasservicebypage = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi(`/secbackend/productinfo/selsaasservicebypage`), { data });
};

/** 新增saas */
export const addinsertsaas = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/productinfo/insertsaas"), { data });
};


/** 删除saas服务 */
export const deldelsaasservice = (userid?: string | number) => {
  return http.request<homeResult>("delete", baseUrlApi(`/secbackend/productinfo/delsaasservice/${userid}`));
};

/** 修改saas */
export const updatesaas = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/productinfo/updatesaas"), { data });
};

// /** 查询企业详情 */
// export const detailSelorg = (id?: string | number) => {
//   return http.request<homeResult>("get", baseUrlApi(`/secbackend/org/selorg/${id}`));
// };


/** 企业saas */
export const productinfosh = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/productinfo/sh"), { data });
};




